/* ============================================================================
* 功能描述 ：主函数
* 作者       ：ggls
* 创建日期 ：2024.04.10
* ----------------------------------------------------------------------------
* 更新历史 ：
*	日期 　　- 修改者   : 更新内容描述
*
* ============================================================================
*/

#ifndef __MAIN_H__
#define __MAIN_H__

#include "hly_app.h"
#include "hly_uart.h"
#include "hly_misc.h"
#include "hly_uart_cmd.h"
#include "hly_zigbee_communicate.h"
#include "hly_zigbee.h"
#include "hly_adc.h"
#include "hly_pwm.h"
#include "hly_water.h"

#include <stdlib.h>
#include <sc.h>

typedef   signed            char int8_t;
typedef   signed short      int int16_t;
typedef   signed            long  int32_t;

typedef unsigned            char uint8_t;
typedef unsigned short      int uint16_t;
typedef unsigned            long  uint32_t;

typedef int32_t  s32;
typedef int16_t  s16;
typedef int8_t   s8;

typedef uint32_t  u32;
typedef uint16_t  u16;
typedef uint8_t   u8;


void Init_System();
void key_on(void);
void Time1_Init();
void HLY_GetTick(void);
void Sleep_Mode();
unsigned long get_current_ms(void);

#endif
